//
//  FilterCell.m
//  penzer
//
//  Created by caiyc on 2018/10/5.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "FilterCell.h"


@implementation FilterCell

- (void)awakeFromNib {
    [super awakeFromNib];


}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.tagView =[[TagView alloc]init];
        [self.contentView addSubview:self.tagView];
        
        [self.tagView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self.contentView);
        }];
        _tagView.delegate = self;
    }
    return self;
}
-(void)binddata:(NSArray *)arr{
   self.tagView.arr = arr;
    [self.contentView layoutIfNeeded];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
